<?php
/**
 * Created by PhpStorm.
 * User: 12133
 * Date: 2024/5/27
 * Time: 13:32
 */

namespace app\controller\admin;


use think\facade\Db;

class Supplier extends Base
{
    public function list(){
        $select = Db::name('supplier')->select();
        return $this->view('/admin/supplier/list',['list' => $select]);
    }

    public function info(){
        $supplier = input('supplier');
        $image = cache($supplier);
        return $this->view('/admin/supplier/info',['image' => $image,'supplier' => $supplier]);
    }

    public function save($supplier){
        $image = input('post.image');
        cache($supplier,$image);
        return $this->msg();
    }
}